<!DOCTYPE html>
<!--引入thymeleaf的标签-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>蜗牛学堂-课程列表</title>
    <meta name="description" content="蜗牛学堂">
    <link href="../css/v2_index.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="../js/dedeajax2.js"></script>
</head>

<body>

<div th:replace="~{common::header}"></div>


<!-- 面包削 -->
<div class="mianbaoxiao clearfix">
    <div class="mianbao-min"><a href="#">首页</a> / 全部课程</div>
</div>
<!-- 面包削End -->


<!-- 课程分类 -->
<div class="peixun-kecheng clearfix" style="display:block">
    <div class="kecheng-fl-pc">
        <a
                th:each="subject:${subjectList}"
                th:text="${subject.title}"
                th:class="${subject.id eq subjectId} ? on : ''"
                th:href="@{'/course/list?subjectId=' + ${subject.id}}"
        >

        </a>
    </div>
</div>
<!-- 课程分类 End -->


<div class="figures_list container">
    <!-- 课程列表 -->
    <div class="m-header-video">
        <ul class="content_list listqu clearfix">
            <li class="content_item" th:each="course : ${courseList}">
                <a th:href="@{'/course/detail/'+${course.id}}" class="link" th:title="${course.title}" target="_blank">
                    <!-- 访问静态页面需要这样写，照着生成的静态页面格式去拼接-->
<!--                <a th:href="@{'/course_detail_' + ${course.id} + '.html'}" class="link" th:title="${course.title}" target="_blank">-->
                    <img th:src="${course.cover}">
                    <em class="jishu" th:title="${course.videoCount}"></em>
                    <div class="main_title" th:title="${course.title}"></div>
                    <p class="price" style="display:none">￥399</p>
                    <div class="sub_title" th:text="${course.buyCount}+'次学习'"></div>
                </a>
            </li>
        </ul>
    </div>
    <!-- 课程列表 End -->
</div>

<!-- 底部版权 -->
<div th:replace="~{common::foot}"></div>
<!-- 底部版权 End -->

</body>
</html>
